package com.example.demo.mapper;


import com.example.demo.enity.Bill;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BillListMapper {

    public List<Bill> getBillListByWhere(Bill bill);

    public Bill findById(Integer billId);

    public int billAddMapper(Bill bill);

    public int updateBillByBill(Bill bill);

    @Delete("delete\n" +
            "from bill_table\n" +
            "where bill_id = #{billId}")
    public int remove(Integer billId);
}
